package com.whz.hierarchy;

/**
 * @Author: sinosoft
 * @Description: 圆
 * @Date: Create in 19:38 2021/5/10
 * @Modified By:
 */
public class Circle extends Figure {
    final double radius;

    public Circle(double radius) {
        this.radius = radius;
    }

    @Override
    double area() {
        return Math.PI * radius * radius;
    }
}
